CC=gcc
FLAG=-Wall -o
ADRCLIENT=client/execClient
ADRSERVEUR=serveur/execServeur

all:transfertcl transfertse

transfertcl: transfertcl.c
	$(CC) $(FLAG) $(ADRCLIENT) $^


transfertse: transfertse.c
	$(CC) $(FLAG) $(ADRSERVEUR) $^

run: runserveur

runserveur: 
	cd serveur
	./$(ADRSERVEUR)

runclient:
	cd client
	./$(ADRCLIENT)
clean:
	rm -f *.o
	rm -f $(ADRCLIENT)
	rm -f $(ADRSERVEUR)

cleanall:clean
	rm -f serveur/client.txt
	rm -f client/serveur.txt
	rm -f client/test1.txt
	rm -f client/test2.txt
	rm -f client/test3.txt
